<?php require_once('../../core/import.php');?>
<?php User::Permission('SLIDE_EDIT'); ?>
<?php
    if($_SERVER['REQUEST_METHOD']=='POST')
    {
		#获取参数
		$Collection_ID=explode(',',Functions::FormArgs('ID'));

		#更新数据
		foreach($Collection_ID as $Key=>$Value)
		{
			if($Value!=NULL)
			{
				$Title=Functions::FormArgs('Title_'.$Value);
				$URL=Functions::FormArgs('URL_'.$Value);
				
				DB::UpdateRowByID('enterprise_star','ID:'.$Value,array
				(
					'Title'=>$Title,
					'URL'=>$URL
				));
			}
		}
	}
?>